package org.example.ch02.p08;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n= scanner.nextInt();
        int sum1=0;
        int sum2=0;
        for (int i=0;i<n;i++){
            int a=scanner.nextInt();
            if (a%2==0){
                sum1+=a;
            }else {
                sum2+=a;
            }
        }
        System.out.println("奇数和=" + sum2 + "," + " 偶数和=" + sum1);
    }
}
